/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @Title: HystrixClientFallbackFactory
 * @Package com.rx.service.base
 * @Description: 服务降级
 * @author: 陈锦韬
 * @date: 2020\4\20 0020
 * @version V1.0
 * @Copyright: 2020 陈锦韬  All rights reserved.
 */
package com.rx.stang.service.impl;

import com.rx.stang.service.FeignUuaService;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author: Administrator
 * @Description: 服务降级
 * @date: 2020\4\20 0020
 */
@Slf4j
@Component
public class HystrixUuaFallbackFactory implements FallbackFactory<FeignUuaService> {
    @Override
    public FeignUuaService create(Throwable cause) {
        return new HystrixUuaWithFallBackFactory();
    }
}
